﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using DevLib.SuperTool;

/** 
 ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** **
 * Description: 
 * Author: Heller (HellerSong@outlook.com)
 * CreationTime: 3/24/2015 10:26:09 PM
 ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** 
 **/
namespace UnitTest.TestSuperTool
{
	[TestClass]
	public class TestStringOM
	{
		[TestMethod]
		public void test_convert_word_upper_to_title()
		{
			Console.WriteLine(StringOM.ConvertToUpperCamelCase("firstName"));
			Console.WriteLine(StringOM.ConvertToUpperCamelCase("user_group"));
			Console.WriteLine(StringOM.ConvertToUpperCamelCase("control_category_id"));
			Console.WriteLine(StringOM.ConvertToUpperCamelCase("ADD_USER"));
		}

		[TestMethod]
		public void test_convert_to_lower_camel_case()
		{
			Console.WriteLine(StringOM.ConvertToLowerCamelCase("FirstName"));
			Console.WriteLine(StringOM.ConvertToLowerCamelCase("ControlCategoryId"));
			Console.WriteLine(StringOM.ConvertToLowerCamelCase("user_group"));
			Console.WriteLine(StringOM.ConvertToLowerCamelCase("control_category_id"));
			Console.WriteLine(StringOM.ConvertToLowerCamelCase("ADD_USER"));
		}

		[TestMethod]
		public void test_convert_to_unix_system_case()
		{
			Console.WriteLine(StringOM.ConvertToUnixCase("FirstName"));
			Console.WriteLine(StringOM.ConvertToUnixCase("controlCategoryId"));
			Console.WriteLine(StringOM.ConvertToUnixCase("ADD_USER"));
		}

		//[TestMethod]
		//public void test_convert_to_database_object_case()
		//{
		//	Console.WriteLine(StringOM.ConvertToDatabaseObjectCase("FirstName"));
		//	Console.WriteLine(StringOM.ConvertToDatabaseObjectCase("controlCategoryId"));
		//}


		//[TestMethod]
		//public void test_upper_sentence_first_letter()
		//{
		//	Console.WriteLine(StringOM.UpperSentenceFirstLetter("this is a test"));
		//}

		//[TestMethod]
		//public void test_count_words()
		//{
		//	String articleFile = DirOM.CombinePath(HSGlobal.PATH_RESOURCE, "EnglishArticle.txt");
		//	HSGlobal.ShowDictionaryInfo(StringOM.CountWords(articleFile));
		//}
	}
}
